home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / SMASTERS / APPROACH / DB2WWW.MPR / SCRIPT / ApproachDoc / Warning Message Table / Body / ObjCheckBox.s (.txt) < prev    next >
Null Bytes Alternating  |  1997-01-09  |  2KB  |  24 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Checkbox, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As CHECKBOX
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Checkbox, X As Long, Y As Long, Flags As Long)
  17.     On Error Resume Next
  18.     If Left$(source.errorcode1.text, 1) = "-" Then
  19.         Msgbox "Cannot set this value for negative error codes",,"Error Setting Value"
  20.         source.setstate(0)
  21.     End If
  22.     
  23.     Err = 0
  24. End Sub